using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
using Sync.DAO;

namespace eTMS.Services{
	/********************************BEGIN SyncTablesServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:21/03/2011 24:09:58</para>
	/// <para>Class Name: SyncTablesServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class SyncTablesService : ISyncTablesService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: SyncTable_ID</para>
		/// <para>Output: SyncTablesEntity</para>
		///</summary>
		public SyncTablesEntity SelectOne(int SyncTable_ID){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.SelectOne(SyncTable_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of SyncTablesEntity</para>
		///</summary>
		public List<SyncTablesEntity> SelectAll(){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of SyncTablesEntity</para>
		///</summary>
		public List<SyncTablesEntity> SelectAllFilter(string strFilter){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: Save</para>
		/// <para>Input: SyncTablesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(SyncTablesEntity o){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: Save</para>
		/// <para>Input: SyncTablesEntity</para>
		/// <para>Output: SyncTablesEntity</para>
		///</summary>
		public SyncTablesEntity SaveRet(SyncTablesEntity o){
			SyncTablesDAO dao = new SyncTablesDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of SyncTablesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<SyncTablesEntity> list){
			SyncTablesDAO dao = new SyncTablesDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of SyncTablesEntity</para>
		/// <para>Output: List of SyncTablesEntity</para>
		///</summary>
		public List<SyncTablesEntity> SaveListRet(List<SyncTablesEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: Update</para>
		/// <para>Input: SyncTablesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(SyncTablesEntity o){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of SyncTablesEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<SyncTablesEntity> list){
			SyncTablesDAO dao = new SyncTablesDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: UpdateSyncTable_ID</para>
		/// <para>Input: NewSyncTable_ID,SyncTable_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSyncTable_ID(int NewSyncTable_ID,int SyncTable_ID){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.UpdateSyncTable_ID(NewSyncTable_ID,SyncTable_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: UpdateSyncTableName</para>
		/// <para>Input: NewSyncTableName,SyncTable_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSyncTableName(string NewSyncTableName,int SyncTable_ID){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.UpdateSyncTableName(NewSyncTableName,SyncTable_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: Delete</para>
		/// <para>Input: SyncTablesEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(SyncTablesEntity o){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:21/03/2011 24:09:58</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: SyncTable_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int SyncTable_ID){
			SyncTablesDAO dao = new SyncTablesDAO();
			return dao.DeleteByID(SyncTable_ID);
		}
		#endregion

		#region Select,delete by SyncTable_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END SyncTablesWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

